<ul class="globalStatsBlock">
    <li><strong>Number of Documents</strong>: {$T.CountOfDocuments}</li>
    <li><strong>Number of Indexes</strong>: {$T.CountOfIndexes}</li>
    <li><strong>Number of Tasks</strong>: {$T.ApproximateTaskCount}</li>
    <li><strong>Stale Indexes</strong>: {#if $T.StaleIndexes.length == 0 } None {#else}
        <ul>
            {#foreach $T.StaleIndexes as index}
            <li>{$T.index}</li>
            {#/foreach}
        </ul>
        {#/if} </li>
    <li><strong>Indexes</strong>: {#if $T.Indexes.length == 0} None {#else} {#foreach $T.Indexes
        as i}
        <ul class="indexDescription">
            <li class="indexHeader">{$T.i.Name}<ul>
                <li>IndexingAttempts: {$T.i.IndexingAttempts}</li>
                <li>IndexingSuccesses: {$T.i.IndexingSuccesses}</li>
                <li>IndexingErrors: {$T.i.IndexingErrors}</li></ul>
            </li>
        </ul>
        {#/foreach} {#/if} </li>
	<li><strong>Triggers</strong>: 
		{#if $T.Triggers.length == 0} None {#else}
		<ul class="triggerDescription">
			 {#foreach $T.Triggers as t}
				<li>{$T.t.Type}: {$T.t.Name}</li>
			 {#/foreach}
        </ul>
		{#/if} 
	</li>
    <li><strong>Errors</strong>: {#if $T.Errors.length == 0} None {#else} {#foreach $T.Errors
        as e}
        <ul class="errorDescription">
            <li class="errorHeader">Error On:{$T.e.Index}<ul>
                <li>Error: {$T.e.Error}</li>
                <li>TimeStamp: <span class='timestamp'>{$T.e.Timestamp}</span></li>
                <li>Document: {$T.e.Document}</li></ul>
            </li>
        </ul>
        {#/foreach} {#/if} </li>
</ul>
